﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HammerMUD.Rooms;

namespace HammerMUD.Areas
{
    public class Area
    {
        private String name;
        private List<Room> rooms;

        public List<Room> Rooms
        {
            get { return rooms; }
            set { rooms = value; }
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public Room FindRoom(Int64 roomNumber)
        {
            foreach (Room r in rooms)
            {
                if (r.RoomNumber.Equals(roomNumber))
                {
                    return r;
                }
            }

            return null;
        }
    }
}
